#!/bin/sh

CUR_MAP=System.map-3.2.0-37-generic

ALLsym=`cat <<__EOF__ | awk '{ print $2 }' | tr -d "\""
WARNING: "expand_files" [/home/nico/YYand/binder.ko] undefined!
WARNING: "__lock_task_sighand" [/home/nico/YYand/binder.ko] undefined!
WARNING: "get_files_struct" [/home/nico/YYand/binder.ko] undefined!
WARNING: "get_vm_area" [/home/nico/YYand/binder.ko] undefined!
WARNING: "can_nice" [/home/nico/YYand/binder.ko] undefined!
WARNING: "put_files_struct" [/home/nico/YYand/binder.ko] undefined!
WARNING: "unmap_kernel_range" [/home/nico/YYand/binder.ko] undefined!
WARNING: "zap_page_range" [/home/nico/YYand/binder.ko] undefined!
__EOF__
`

for un_SYM in $ALLsym
do
grep -w $un_SYM $CUR_MAP|awk '{ print $3 " = 0x" $1 ";" }'
done
